package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.CerGastroscopeDiagnosisCollectInfoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = CerGastroscopeDiagnosisCollectInfoServiceFallback.class)
public interface CerGastroscopeDiagnosisCollectInfoService {

    @PostMapping("/cdcerserver/v1/gastroscopestatistics/listPageData")
    JsonObj listPageData(PageData pageData);

    @PostMapping("/cdcerserver/v1/gastroscopestatistics/findByOrgIdAndUploadYear")
    JsonObj findByOrgIdAndUploadYear(PageData pageData);

    @PostMapping("/cdcerserver/v1/gastroscopestatistics/changStatus")
    JsonObj changStatus(PageData pageData);
}
